﻿@model IEnumerable<MVC4_Test.Models.Tag>



@{
    ViewBag.Title = "_RelatedTagSideBar";
}
<div class="module js-gps-related-tags" id="related-tags">
    <h4 id="h-related-tags">
        Related Tags</h4>
    @foreach (var item in Model)
    {
        <div>
            <a href="/question/tagged/@item.TagId" class="post-tag" title="show questions tagged '@item.Text'" rel="tag">@item.Text</a>&nbsp;<span class="item-multiplier"><span class="item-multiplier-x">×</span>&nbsp;<span class="item-multiplier-count">601980</span></span>
        </div>
    }
    <a href="#" class="show-more js-show-more js-gps-track" data-gps-track="related_tags.click({ item_type:2 })">
        more related tags </a>
    <script>
        StackExchange.ready(function () {
            var $div = $('#h-related-tags').parent();
            $div.find('.js-show-more').click(function () {
                $div.find('.js-hidden').show();
                $(this).remove();
                return false;
            });
        });
    </script>
</div>
